import { message } from "antd"


export const handleRes = (res) => {
    if(res.success === true){
        message.success(res.message);
    } else {
        message.error(res.message);
    }
    return res.success;
}